// import { Modal } from 'iview'
// import { Modal } from 'view-design'
import { Modal } from 'view-ui-plus'
import modalConfirm from '@/components/lz-modal-confirm'

const beforeClose = {
  before_close_normal: (resolve) => {
    Modal.confirm({
      title: '确定要关闭这一页吗',
      render: (h) => {
        return h(modalConfirm,{
          title:`确定要关闭这一页吗`
        })
      },
      onOk: () => {
        resolve(true)
      },
      onCancel: () => {
        resolve(false)
      },
    })
  },
}

export default beforeClose
